<?xml version="1.0" encoding="utf-8"?>
<openerp>
	<data>
		<record id="view_account_list_applico" model="ir.ui.view">
			<field name="name">view.account.list.applico</field>
			<field name="model">account.account</field>
			<field name="inherit_id" ref="account.view_account_list"/>
			<field name="arch" type="xml">
				<field name="type" position="after">
					<field name="pl_type"/>
				</field>
			</field>
		</record>

		<record id="view_account_form_applico" model="ir.ui.view">
			<field name="name">view.account.form.applico</field>
			<field name="model">account.account</field>
			<field name="inherit_id" ref="account.view_account_form"/>
			<field name="arch" type="xml">
				<field name="user_type" position="after">
					<field name="pl_type"/>
				</field>
			</field>
		</record>


		<record model="ir.ui.view" id="view_account_journal_form_applico">
			<field name="name">view.account.journal.form.applico</field>
			<field name="model">account.journal</field>
			<field name="type">form</field>
			<field name="inherit_id" ref="account.view_account_journal_form"/>
			<field name="arch" type="xml">
				<field name="default_credit_account_id" position="after">
					<field name="property_bank_charges"/>
				</field>
				<page string="Entry Controls" position="replace">
					<page string="Entry Controls" invisible="1">
                            <separator colspan="4" string="Accounts Type Allowed (empty for no control)"/>
                            <field colspan="4" name="type_control_ids" nolabel="1"/>
                            <separator colspan="4" string="Accounts Allowed (empty for no control)"/>
                            <field colspan="4" name="account_control_ids" nolabel="1"/>
                    </page>
				</page>
				<page string="Cash Registers" position="replace">
					<page string="Cash Registers" invisible="1">
                        <group>
                            <group string="Accounts">
                                <field name="profit_account_id" domain="[('type','!=','view')]"/>
                                <field name="loss_account_id" domain="[('type','!=','view')]"/>
                                <field name="internal_account_id" domain="[('type','!=','view')]"/>
                            </group>
                            <group string="Miscellaneous">
                                <field name="with_last_closing_balance" attrs="{'invisible': [('type', 'not in', ['bank', 'cash'])]}"/>
                                <field name="cash_control" attrs="{'invisible':[('type','not in', ('cash',))]}"/>
                            </group>
                        </group>
                        <separator string="Available Coins" colspan="4" attrs="{'invisible' : ['|',('cash_control', '=', False),('type','not in', ('cash',))] }"/>
                        <field name="cashbox_line_ids" nolabel="1" string="Unit Of Currency Definition" colspan="4" attrs="{'invisible' : ['|',('cash_control', '=', False),('type','not in', ('cash',))]}">
                            <tree string="CashBox Lines" editable="bottom">
                                <field name="pieces" />
                            </tree>
                        </field>
                    </page>
				</page>
				
			</field>
		</record>

		<record model="ir.ui.view" id="view_company_form_applico">
			<field name="name">view.company.form.applico</field>
			<field name="inherit_id" ref="base.view_company_form"/>
			<field name="model">res.company</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<xpath expr="/form/sheet/notebook/page[@string='Configuration']/group/group/field[@name='currency_id']" position="after">
					<field name="property_currency_gain_loss"/>
				</xpath>
			</field>
		</record>

		<record id="account.menu_bank_statement_tree" model="ir.ui.menu">
			<field name="groups_id" eval="[(6,0,[ref('hidden_applico')])]"/>
		</record>

		<record id="account.periodical_processing_reconciliation" model="ir.ui.menu">
			<field name="groups_id" eval="[(6,0,[ref('hidden_applico')])]"/>
		</record>

		<record id="account.menu_finance_recurrent_entries" model="ir.ui.menu">
			<field name="groups_id" eval="[(6,0,[ref('hidden_applico')])]"/>
		</record>

		<record id="account.menu_finance_reports" model="ir.ui.menu">
			<field name="groups_id" eval="[(6,0,[ref('hidden_applico')])]"/>
		</record>
	
		<record id="account.menu_wizard_fy_close" model="ir.ui.menu">
			<field name="groups_id" eval="[(6,0,[ref('hidden_applico')])]"/>
		</record>
		
		<record id="account.menu_wizard_account_open_closed_fiscalyear" model="ir.ui.menu">
			<field name="groups_id" eval="[(6,0,[ref('hidden_applico')])]"/>
		</record>
		
		<record id="account.menu_wizard_fy_close_state" model="ir.ui.menu">
			<field name="groups_id" eval="[(6,0,[ref('hidden_applico')])]"/>
		</record>
		
		<record id="account.menu_finance_bank_and_cash" model="ir.ui.menu">
			<field name="groups_id" eval="[(6,0,[ref('hidden_applico')])]"/>
		</record>
		
		<record id="account.menu_action_move_journal_line_form" model="ir.ui.menu">
			<field name="groups_id" eval="[(6,0,[ref('hidden_applico')])]"/>
	    </record>
		
		<record id="account.menu_action_account_moves_all" model="ir.ui.menu">
			<field name="groups_id" eval="[(6,0,[ref('hidden_applico')])]"/>
	    </record>
		
	</data>
</openerp>
